﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>{$site_info.site_name|default=''}</title>
<meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
<meta name="description" content="{$site_info.site_seo_description|default=''}">


<include file="public@head"/>

</head>

<body>
    
    <include file="public@nav"/>

    <div class="slick">
        <php>
            $banner_slide_id = empty($theme_vars['banner_slide']) ? 1 : $theme_vars['banner_slide'];
        </php>
        <slides id="$banner_slide_id">        
            <div class="pic" style="background-image: url({:cmf_get_image_url($vo['image'])})"><notempty name="vo.url"><a href="{$vo.url}" target="_blank"></a></notempty></div>
        </slides>
    </div>
    <div class="inMain">
        <div class="inMainBox layout clearfix">
            <div class="item-1 clearfix">
                <slides id='32' limit='1'>
                <div class="pic fl">
                <a href="{$vo.url}">
                    <img src="{:cmf_get_image_url($vo['image'])}">
                </a>
                </div>
                </slides>

                <php>
                    $where          = 'goods.recommended=1';
                    $recommen_limit = 6;
                    $gso            = GSO;
                

                </php>

                <div class="text fl">
                    <div class="tag">终端产品<span>Products</span></div>
                    <div class="proslick">
                        <goods:goods field="goods.goods_id,goods.more,goods.goods_name,goods.post_excerpt,category_relate.category_id" limit="$recommen_limit" order="$gso" where="$where"
                                         categoryIds="$widget.vars.recommended_products_category_id">
                        <div class="porlist">
                            <div class="title"><a href="{:cmf_url('goods/Details/index',array('id'=>$vo['goods_id'],'cid'=>$vo['category_id']))}" style="color:#e10102;">{$vo.goods_name}</a></div>
                            <div class="aule">
                                {$vo.post_excerpt|msubstr=0,30}
                            </div>
                        </div>
                        </goods:goods>
                        
                    </div>
                </div>
            </div>
            <div class="item-1 clearfix">
                <slides id='33' limit='1'>
                    <div class="pic fl">
                        <a href="{$vo.url}">
                            <img src="{:cmf_get_image_url($vo['image'])}">
                        </a>
                    </div>
                </slides>

                <div class="text fl">
                    <div class="tag">新闻动态
                        <span>NEWS</span>
                    </div>
                    <php>
                        $widget["vars"]["last_news_category_id"] = '17,18,19';
                        $last_news_limit=6;
                        $where="post.is_top=1 or post.recommended=1";
                    </php>
                    <div class="proslick">
                        <portal:articles limit="$last_news_limit" order="post.published_time DESC" where="$where"
                                         categoryIds="$widget.vars.last_news_category_id">
                        <div class="porlist">
                            <div class="title"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" style="color:#e10102;">{$vo.post_title}</a></div>
                            <div class="aule">
                                 {$vo.post_excerpt|msubstr=0,30}
                            </div>
                        </div>
                        </portal:articles>
                        
                    </div>
                </div>
            </div>
            <slides id='34' limit='1'>
            <div class="item-2 fl" style="background-image: url({:cmf_get_image_url($vo['image'])})">
            <a href="{$vo.url}">
                <div class="title">About us</div>
                <div class="text">
                     世丰
                </div>
            </a>
            </div>
            </slides>

        </div>
    </div>
    
    <include file='public@footer'/>
</body>
</html>

<include file='public@scripts'/>

<script type="text/javascript">
    $(function(){
        $('.slick').slick({
            dots: true,
            useCSS:false,
            autoplay:true,
            arrows:false
        });
        $('.proslick').slick({
            dots: true,
            useCSS: false,
            autoplay: true,
            arrows: false
        });
    })
</script>


